/*
 * @(#)Board.java	1.0 2010/06/25
 *
 * Copyright 2010 guyven and David Croft. All rights reserved.
 */
package com.iawg.attrition.game.map;

/**
 * The <code>Board</code> class contains all of the information regarding the actual
 * map tile set.
 * 
 * @author guyven
 * @author William David Croft Jr.
 * @version 1.0 2010/06/25
 */
public class Board {
	/** The value is used to hold the tile matrix that the board is composed of. */
	private Tile[][] tileMatrix;
	
	public Board(Tile[][] tileMatrix){
		this.tileMatrix = tileMatrix;
	}
	
	/**
	 * @return the tile matrix.
	 */
	public Tile[][] getTileMatrix() {
		return tileMatrix;
	}

	/**
	 * @return the width of the board.
	 */
	public int getWidth() {
		return tileMatrix.length;
	}

	/**
	 * @return the height of the board.
	 */
	public int getHeight() {
		return tileMatrix[0].length;
	}

	/**
	 * @param tileMatrix the new tile matrix
	 */
	public void setTileMatrix(Tile[][] tileMatrix) {
		this.tileMatrix = tileMatrix;
	}
}